
#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>


int statistics(int b)
{
	int count = 0;
	int c = 1;
	while (c != 0)
	{
		if ((b & c) != 0)
			count++;
		c <<= 1;
	}
	return count;
}


int main()
{
	int a = 0;
	int b = 0;
	scanf("%d", &a);
	scanf("%d", &b);
	int c = a ^ b;
	int re = statistics(c);
	printf("%d", re);
	return 0;
}
